﻿@using Orchard.ContentManagement;
@using Orchard.Core.Contents;
@using Bootstrap
@if (AuthorizedFor(Permissions.EditContent) && Model.ContentItem.Id > 0) {
    <div class="content-control">
        <div>
            @Display(Model.Child)    
        </div>
        <ul class="manage-actions nav nav-pills">
            <!--<li class="active">Actions</li><li class="divider">|</li>-->
            <li>
                <a href="/admin/contents/edit/@(Model.ContentItem.Id)?returnUrl=@(ViewContext.HttpContext.Request.RawUrl)">
                <span class="icon-edit"></span>
                @(T("Edit").Text)
                </a>
            </li>
        </ul>   
    </div>
}
else {
    @Display(Model.Child)
}